-- GENERATED SPELL FOR [Galak Windchaser] --


function spell0_4096(pUnit, Event) --@Enveloping Winds,n/a--
pUnit:FullCastSpellOnTarget(6728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4096', 12000, 1)
end

function spell1_4096(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(939,pUnit)
pUnit:RegisterEvent('Sorts_4096', 3000, 1)
end

function Sorts_4096(pUnit, Event)
local choix_sorts_4096 = math.random(0, 1)
if choix_sorts_4096 == 0 then
pUnit:RegisterEvent('spell0_4096', 1, 1)
end
if choix_sorts_4096 == 1 then
pUnit:RegisterEvent('spell1_4096', 1, 1)
end
end

function mob4096_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4096', math.random(1500, 3000), 1)
end

function mob4096_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4096_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4096_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4096, 1, 'mob4096_Action')
RegisterUnitEvent(4096, 2, 'mob4096_Leave')
RegisterUnitEvent(4096, 3, 'mob4096_Kill')
RegisterUnitEvent(4096, 4, 'mob4096_Die')
